package com.yu.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yu.crm.domain.pojo.AttendanceSet;
import com.yu.crm.domain.pojo.SetInfo;
import com.yxzz.common.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考勤设置表 Mapper 接口
 * </p>
 *
 * @author ct
 * @since 2019-12-31
 */
public interface AttendanceSetMapper extends BaseMapper<AttendanceSet> {
    /**
     * 通过条件查询列表
     * @param page
     * @param condition
     * @return
     */
    IPage<AttendanceSet> ipage(Page<AttendanceSet> page, @Param("condition") String condition);

    AttendanceSet InfoByDepId(@Param("setInfo") SetInfo setInfo);

    List<AttendanceSet> ListByDepId(@Param("setInfo") SetInfo setInfo);
}
